<?php
class userBase extends Activity {
    /** @var UserModule */
    protected $user;
    function __construct() {
        $this->user=UserModule::init();
        if(is_null($this->user->getLoginId())){
            $_SESSION['user_login_call_back']=$_SERVER['REQUEST_URI'];
            header("Location:".WebRouter::init()->getPage("user","index"));
            exit();
        }
    }
}